package testsuite_homepage.pageobject;

import org.openqa.selenium.WebDriver;

public class POMNotLoggedHomepage {
	private final WebDriver driver;
	private POMLoginForm loginf;

	public POMNotLoggedHomepage(WebDriver driver) {
		this.driver = driver;
		if (!(driver.getPageSource().contains(
				"As a graduate of the MPTQA Information Technology program") && driver
				.getPageSource().contains("Forgot your password?"))) {
			throw new IllegalStateException("Not Logged homepage not appears.");
		}
		loginf = new POMLoginForm(this.driver);
	}

	public POMLoginForm getLoginForm() {
		return loginf;
	}
}
